MongoDB stores data in _______ format.
- BSON (Binary JSON)
- CSV
- JSON
- XML
MongoDB stores data in BSON (Binary JSON) format. BSON is a binary representation of JSON-like documents and is the primary data storage format used by MongoDB.
Which attribute is used to provide an alternative text for an image in HTML?
- alt
- href
- src
- title
The alt attribute is used to provide alternative text for an image in HTML. This text is displayed if the image file cannot be loaded or if the user is using a screen reader. It is important for accessibility and SEO purposes.
Which database indexing technique helps in optimizing query performance by storing data in a sorted order?
- Bitmap Index
- Clustered Index
- Non-clustered Index
- Unique Index
A Clustered Index is a database indexing technique that helps in optimizing query performance by storing data in a sorted order based on the indexed columns. This physical ordering of data on the disk allows for faster retrieval of rows, especially when queries involve range-based searches or sorting. However, it's important to note that a table can have only one clustered index.
The "git branch" command is used to _______.
- Create a new branch
- Delete a branch
- List all branches
- Merge branches
The "git branch" command, when used without any additional arguments, lists all existing branches in the Git repository. It's a handy command to see the available branches and the currently active branch.
_______ is a SQL command used to retrieve data from multiple tables simultaneously based on a specified condition.
- GROUP BY
- JOIN
- MERGE
- UNION
The JOIN command in SQL is used to retrieve data from multiple tables simultaneously based on a specified condition. It combines rows from two or more tables based on a related column.
How does "git reset" differ from "git revert"?
- git reset discards commits, and changes are lost
- git reset undoes a commit, preserving changes
- git revert discards commits, and changes are lost
- git revert undoes a commit, preserving changes
git reset discards commits and changes are lost, whereas git revert undoes a commit while preserving changes by creating a new commit that undoes the previous changes. Reset is more powerful and should be used with caution.
Which of the following is a server-side language commonly used for web development?
- CSS
- HTML
- JavaScript
- PHP
PHP is a server-side scripting language commonly used for web development. It allows developers to create dynamic web pages and interact with databases on the server side.
Which AWS service is used for serverless computing?
- AWS Lambda
- Amazon EC2
- Amazon RDS
- Amazon S3
AWS Lambda is the AWS service used for serverless computing. It allows developers to run code without provisioning or managing servers. It's a cost-effective way to build applications that respond to events and scale automatically.
In GitHub Flow, when is a pull request typically merged into the main branch?
- After passing code review and approval
- As soon as the pull request is created
- Before any testing is done
- Only after the feature is fully implemented
In GitHub Flow, a pull request is typically merged into the main branch after it has undergone code review, received approvals, and any required tests have passed. This ensures the quality and integrity of the main branch.
Your team has encountered a critical issue in the production environment after deploying the software. Outline the steps you would take to address this issue and prevent similar incidents in the future.
- Conduct Root Cause Analysis
- Identify and Isolate the Issue
- Implement Automated Testing
- Rollback to the Previous Version
In response to a critical production issue, the key step is to conduct a root cause analysis. This involves identifying the underlying cause of the problem to implement a targeted solution. Rolling back may be necessary, but preventing future incidents requires understanding and addressing the root cause.