Posts

Showing posts from April, 2015

MSSQL server audit

MSSQL Server Auditing on AWS RDS Enable MSSQL Server Auditing on AWS RDS To enable MSSQL server auditing on AWS RDS, please follow these steps: Login to AWS console and go to RDS. Create an option group under RDS > Option groups Give name as 'SqlServerAudit' Provide description as 'Option group for SQL Server audit' Choose the engine as same as the one used while creating the database in RDS. Choose the latest engine version. Save. Go to RDS > Option groups and select the radio button on the option group you just created Click on Add Option. Select SQLSERVER_AUDIT under “Option name” Choose the S3 bucket name where you want to keep the audit files once they grow more than the specified limit. Choose the appropriate IAM role with write access to the S3 bucket. Scheduling > Immediately and then click on “Add Option“.

Java Collection Interview Questions and Detailed Answers Part II

More questions on Java Collection API, continued from our previous post linked here Q 1. Explain the impacts of variable and fixed hashcodes for objects stored in hash based data structures ? A. Fixed HashCode: If the hashcode of all the key objects are fixed and all of them return a same number then all the key-value pairs will go in same bucket. In this case the performance of hash based data structure will go down and time complexity for searching will be O(n). Reason is because all the key value pairs goes in same bucket hence jvm will need to traverse all the entries in the bucket to find the suitable key-value pair for the equals() method call. Variable HashCode: If the hashcode of the key object is random then the location of key-value pair for this key in the bucket will be different everytime, as a result the same key will be stored multiple times in the HashMap with different bucket locations. During retrieval of a key-value pair it is also possible that the value associat

Java Collections Interview Questions with Detailed Answers

Image
None of the interviews for Java based position can be completed without questions about Java Collections Framework. The Java Collection Framework is one of the core framework of Java language which each Java developer should know. The Java Collection Framework itself is very wide and its difficult to cover all the areas but still in this blog we will try to cover those questions and answers in detail which a candidate should know. Hierarchy of collection framework: Java collections hierarchy