AWS Lambda MCQ Questions and Answers: Enhance Your Skills with DynamoDB and RDS Integration
Are you looking to master AWS Lambda integration with DynamoDB and RDS? This set of AWS Lambda MCQ questions and answers will help you learn how to connect Lambda with DynamoDB for CRUD operations, integrate it with RDS (MySQL, PostgreSQL), and manage database connections securely. Perfect for exam preparation or hands-on practice!
a) AWS SDK
b) Amazon RDS
c) AWS CLI
d) AWS IAM
a) Object creation
b) Item updates, deletions, and inserts
c) New table creation
d) Function execution events
a) 10
b) 25
c) 50
d) There is no limit
a) Through an API Gateway
b) By using the AWS RDS endpoint URL
c) By using Amazon EC2 instances
d) Through the AWS Lambda runtime
a) MySQL
b) PostgreSQL
c) Oracle
d) All of the above
a) AWS.DynamoDB
b) AWS.DynamoDB.Client
c) DynamoDB.Interface
d) AWS.RDS
a) DynamoDB Streams must be enabled on the table
b) AWS Lambda needs a VPC connection
c) A direct connection to S3
d) A custom event source must be created
a) Real-time updates on data changes
b) Replicating data to other AWS regions
c) Triggering Lambda functions on table modifications
d) Storing data in S3
a) Performing SQL queries on RDS tables
b) Creating DynamoDB tables
c) Setting up VPC connections
d) Managing serverless EC2 instances
a) AWSLambdaDynamoDBPolicy
b) AWSLambdaBasicExecutionRole
c) DynamoDBFullAccess
d) LambdaExecutionRole
a) Use IAM roles and policies
b) Hardcode credentials in Lambda
c) Use S3 buckets for credential storage
d) Use public database access
a) PutItem
b) UpdateItem
c) GetItem
d) DeleteItem
a) Read and write data
b) Perform table backups
c) Create and manage indexes
d) Only read data
a) To automate table backups
b) To reduce the complexity of SQL queries
c) To react to data changes in real-time
d) To increase database performance
a) By storing credentials in environment variables
b) By using AWS Secrets Manager
c) By hardcoding credentials in the Lambda function
d) By using AWS CloudTrail for auditing
a) To perform backups
b) To capture changes to items and trigger functions
c) To manage table schema changes
d) To update DynamoDB index configurations
a) A Lambda function inside a VPC
b) A Lambda function outside the VPC
c) A Lambda function using public IPs
d) A Lambda function with VPC peering
a) PutItem
b) UpdateItem
c) BatchWriteItem
d) QueryItem
a) By using SSL/TLS encryption
b) By using IP whitelisting
c) By using unencrypted HTTP
d) By using direct access to EC2 instances
a) Use SQL INSERT statements within the Lambda code
b) Store data in DynamoDB and sync to RDS
c) Write directly to S3 and let RDS sync
d) Avoid writing data from Lambda to RDS
a) To allow Lambda to assume a specific role for access
b) To encrypt Lambda functions
c) To track Lambda function execution
d) To enforce data retention in DynamoDB
a) AWS CloudWatch
b) AWS X-Ray
c) AWS CloudTrail
d) AWS Inspector
a) By automatically scaling the Lambda function
b) By sending data to S3
c) By using API Gateway
d) By reducing the batch size in DynamoDB Streams
a) Triggering a function when a new RDS instance is created
b) Querying RDS to update customer records
c) Managing RDS instance backups
d) Scaling RDS automatically
a) It triggers an error and stops
b) It needs an IAM role with network access permissions
c) It accesses RDS through a public endpoint
d) It automatically resolves the connection issue
a) Yes, but only for transactional queries
b) Yes, for both transactional and analytical queries
c) No, Lambda only supports transactional queries
d) No, Lambda can only use DynamoDB for analytics
a) AWS Secrets Manager
b) S3 Bucket
c) CloudFormation
d) EC2 Instance Metadata
a) By using a VPC and security groups
b) By using public IP addresses
c) By using direct internet connections
d) By connecting to DynamoDB as an intermediary
a) 4 MB
b) 1 MB
c) 400 KB
d) 10 MB
a) Real-time event-driven architecture
b) Complex SQL queries are easier to manage
c) Direct integration with RDS
d) Improved data consistency and ACID compliance
Qno | Answer (Option with the text) |
---|---|
1 | a) AWS SDK |
2 | b) Item updates, deletions, and inserts |
3 | d) There is no limit |
4 | b) By using the AWS RDS endpoint URL |
5 | d) All of the above |
6 | a) AWS.DynamoDB |
7 | a) DynamoDB Streams must be enabled on the table |
8 | b) Replicating data to other AWS regions |
9 | a) Performing SQL queries on RDS tables |
10 | a) AWSLambdaDynamoDBPolicy |
11 | a) Use IAM roles and policies |
12 | a) PutItem |
13 | a) Read and write data |
14 | c) To react to data changes in real-time |
15 | b) By using AWS Secrets Manager |
16 | b) To capture changes to items and trigger functions |
17 | a) A Lambda function inside a VPC |
18 | a) PutItem |
19 | a) By using SSL/TLS encryption |
20 | a) Use SQL INSERT statements within the Lambda code |
21 | a) To allow Lambda to assume a specific role for access |
22 | a) AWS CloudWatch |
23 | a) By automatically scaling the Lambda function |
24 | b) Querying RDS to update customer records |
25 | b) It needs an IAM role with network access permissions |
26 | b) Yes, for both transactional and analytical queries |
27 | a) AWS Secrets Manager |
28 | a) By using a VPC and security groups |
29 | b) 1 MB |
30 | a) Real-time event-driven architecture |