Docsity

Amazon Web Services training Exam, Exams of Technology

Toggle sidebar
bg1
Amazon Web Services training Practice Exam
Question 1: Which AWS service is primarily used to manage user identities and
permissions for secure access?
A) AWS IAM
B) Amazon EC2
C) Amazon RDS
D) AWS Lambda
Answer: A
Explanation: AWS Identity and Access Management (IAM) is designed to manage access to
AWS resources by creating and controlling AWS users, groups, roles, and permissions.
Question 2: What is the principle of least privilege?
A) Granting all users full access by default
B) Restricting permissions to only those needed for a task
C) Allowing temporary elevated privileges for everyone
D) Sharing credentials among multiple users
Answer: B
Explanation: The principle of least privilege means users are given only the permissions they
need to complete their tasks, reducing security risks.
Question 3: Which AWS service supports federated access allowing users to log in with
external credentials?
A) AWS CloudFormation
B) AWS IAM Identity Center
C) Amazon CloudWatch
D) Amazon SNS
Answer: B
Explanation: AWS IAM Identity Center (formerly AWS Single Sign-On) provides federated
access by integrating with external identity providers.
Question 4: What does the AWS shared responsibility model imply?
A) AWS is solely responsible for all security aspects
B) The customer manages physical security in data centers
C) Security responsibilities are divided between AWS and the customer
D) Only the customer is responsible for network security
Answer: C
Explanation: In the AWS shared responsibility model, AWS is responsible for the security of the
cloud infrastructure, while customers are responsible for securing their data and applications in
the cloud.
Question 5: How can you secure your AWS account's root user?
A) By disabling MFA
B) By using a simple password
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36

Partial preview of the text

Download Amazon Web Services training Exam and more Exams Technology in PDF only on Docsity!

Amazon Web Services training Practice Exam

Question 1: Which AWS service is primarily used to manage user identities and permissions for secure access? A) AWS IAM B) Amazon EC C) Amazon RDS D) AWS Lambda Answer: A Explanation: AWS Identity and Access Management (IAM) is designed to manage access to AWS resources by creating and controlling AWS users, groups, roles, and permissions. Question 2: What is the principle of least privilege? A) Granting all users full access by default B) Restricting permissions to only those needed for a task C) Allowing temporary elevated privileges for everyone D) Sharing credentials among multiple users Answer: B Explanation: The principle of least privilege means users are given only the permissions they need to complete their tasks, reducing security risks. Question 3: Which AWS service supports federated access allowing users to log in with external credentials? A) AWS CloudFormation B) AWS IAM Identity Center C) Amazon CloudWatch D) Amazon SNS Answer: B Explanation: AWS IAM Identity Center (formerly AWS Single Sign-On) provides federated access by integrating with external identity providers. Question 4: What does the AWS shared responsibility model imply? A) AWS is solely responsible for all security aspects B) The customer manages physical security in data centers C) Security responsibilities are divided between AWS and the customer D) Only the customer is responsible for network security Answer: C Explanation: In the AWS shared responsibility model, AWS is responsible for the security of the cloud infrastructure, while customers are responsible for securing their data and applications in the cloud. Question 5: How can you secure your AWS account's root user? A) By disabling MFA B) By using a simple password

C) By enabling multi-factor authentication (MFA) D) By sharing the credentials with trusted colleagues Answer: C Explanation: Enabling MFA for the root user adds an extra layer of protection against unauthorized access. Question 6: Which of the following is a benefit of using IAM roles instead of IAM users for AWS services? A) Roles do not expire B) They allow temporary credentials C) They require manual password changes D) They allow sharing of static credentials Answer: B Explanation: IAM roles provide temporary security credentials that applications can assume, which enhances security by not using long-term credentials. Question 7: What AWS service can be used to enforce governance across multiple AWS accounts? A) AWS Control Tower B) Amazon Route 53 C) AWS CloudTrail D) Amazon S Answer: A Explanation: AWS Control Tower provides centralized governance and management across multiple AWS accounts. Question 8: When designing a cross-account access strategy, which AWS service is key to providing temporary credentials? A) AWS STS B) AWS Lambda C) Amazon DynamoDB D) Amazon EC Answer: A Explanation: AWS Security Token Service (STS) issues temporary security credentials to allow secure cross-account access. Question 9: Which AWS best practice helps minimize the risk of unauthorized API access? A) Using a single IAM user for all API calls B) Implementing IAM policies that follow the principle of least privilege C) Hard coding credentials in application code D) Disabling logging of API calls Answer: B Explanation: Implementing least privilege in IAM policies ensures that API calls are made only with the necessary permissions, reducing risk.

Question 15: What does a Virtual Private Cloud (VPC) enable you to do? A) Create isolated network environments in AWS B) Manage user identities C) Deploy machine learning models D) Run serverless functions exclusively Answer: A Explanation: A VPC allows you to provision a logically isolated section of the AWS cloud where you can launch AWS resources in a virtual network. Question 16: How can network segmentation be achieved in a VPC? A) By using only public subnets B) By creating separate VPCs for each resource C) By using public and private subnets along with security groups and network ACLs D) By disabling internet access Answer: C Explanation: Network segmentation is typically implemented by dividing the VPC into public and private subnets and controlling traffic with security groups and network ACLs. Question 17: What role do security groups play in AWS? A) They provide DNS resolution B) They act as virtual firewalls for EC2 instances C) They encrypt data at rest D) They manage backups Answer: B Explanation: Security groups are virtual firewalls that control inbound and outbound traffic for AWS resources like EC2 instances. Question 18: Which AWS service would you use to centrally manage encryption keys? A) AWS KMS B) Amazon Aurora C) AWS CloudFormation D) Amazon Redshift Answer: A Explanation: AWS Key Management Service (KMS) is used to create, manage, and control encryption keys used to encrypt data. Question 19: What is the main benefit of encrypting data in transit? A) Increases data transfer speeds B) Protects data from interception during transmission C) Reduces storage costs D) Eliminates the need for backups Answer: B Explanation: Encrypting data in transit protects it from being intercepted or tampered with while it is moving between systems.

Question 20: Which tool can you use to automatically renew SSL/TLS certificates on AWS? A) AWS CloudTrail B) AWS Certificate Manager (ACM) C) AWS Config D) Amazon Inspector Answer: B Explanation: AWS Certificate Manager (ACM) manages, provisions, and automatically renews SSL/TLS certificates for your AWS resources. Question 21: What is the purpose of network ACLs in a VPC? A) They replace security groups B) They act as a firewall for the subnet level C) They encrypt data D) They manage user authentication Answer: B Explanation: Network ACLs provide an additional layer of security by controlling traffic at the subnet level in a VPC. Question 22: How does AWS Secrets Manager help secure applications? A) By providing high-availability compute instances B) By managing and rotating sensitive credentials C) By scaling databases automatically D) By monitoring API calls Answer: B Explanation: AWS Secrets Manager securely stores, manages, and automatically rotates sensitive information like passwords and API keys. Question 23: What is an effective strategy for managing cross-account access? A) Sharing IAM user credentials B) Using IAM roles with AWS STS for temporary credentials C) Disabling MFA on all accounts D) Creating identical policies in all accounts manually Answer: B Explanation: Using IAM roles with AWS STS provides secure, temporary credentials for cross- account access without sharing long-term credentials. Question 24: Which AWS service provides continuous security monitoring and threat detection? A) Amazon GuardDuty B) Amazon S C) AWS CodeDeploy D) Amazon Aurora Answer: A Explanation: Amazon GuardDuty continuously monitors for malicious activity and unauthorized behavior to protect AWS accounts and workloads.

Question 30: What is the purpose of implementing MFA for IAM users? A) To speed up login times B) To add an additional security layer by requiring a second form of authentication C) To reduce the number of IAM users needed D) To allow password sharing among users Answer: B Explanation: Multi-factor authentication (MFA) requires an additional form of authentication, significantly increasing account security. Question 31: Which AWS service assists in managing directory-based access for federated users? A) AWS Directory Service B) AWS CloudTrail C) Amazon SNS D) Amazon SQS Answer: A Explanation: AWS Directory Service helps integrate on-premises directories with AWS, facilitating directory-based access for federated users. Question 32: When designing secure workloads, what is the benefit of using NAT gateways? A) They allow direct internet access to private instances B) They enable private instances to access the internet while keeping them hidden from inbound connections C) They replace the need for security groups D) They automatically encrypt all network traffic Answer: B Explanation: NAT gateways allow instances in a private subnet to access the internet for updates or patches without exposing them to incoming internet traffic. Question 33: Which AWS service would you use to monitor changes in your AWS environment for compliance purposes? A) AWS CloudTrail B) Amazon RDS C) AWS Lambda D) AWS Fargate Answer: A Explanation: AWS CloudTrail records account activity and API usage, which is crucial for compliance auditing and monitoring changes. Question 34: What is one way to protect data at rest in AWS? A) By using unencrypted storage B) By applying server-side encryption with AWS KMS C) By storing data in plain text D) By disabling access logging Answer: B

Explanation: Encrypting data at rest using server-side encryption with AWS Key Management Service (KMS) secures stored data from unauthorized access. Question 35: Which AWS service would you use for managing and rotating encryption keys? A) Amazon CloudFront B) AWS KMS C) AWS Elastic Beanstalk D) Amazon RDS Answer: B Explanation: AWS Key Management Service (KMS) is specifically designed for creating, managing, and rotating encryption keys. Question 36: What is the advantage of using public and private subnets within a VPC? A) It simplifies application development B) It enables better cost management C) It helps in isolating resources and controlling access D) It eliminates the need for encryption Answer: C Explanation: Splitting a VPC into public and private subnets enhances security by isolating resources and controlling access to critical systems. Question 37: Which AWS service is best suited for detecting anomalous API activities and potential security threats? A) Amazon GuardDuty B) AWS Auto Scaling C) Amazon RDS D) AWS Data Pipeline Answer: A Explanation: Amazon GuardDuty continuously analyzes AWS account and network activity to identify potential threats and anomalous behavior. Question 38: Which approach is recommended when managing multiple AWS accounts in an organization? A) Using one account for all departments B) Isolating workloads in separate accounts and managing them via AWS Organizations C) Sharing root credentials among accounts D) Relying solely on manual policies Answer: B Explanation: Isolating workloads in separate accounts and managing them through AWS Organizations enhances security and simplifies governance. Question 39: What is the primary benefit of integrating AWS Directory Service with IAM roles? A) It automates software deployments B) It allows users to authenticate using existing corporate credentials

B) AWS Glue C) AWS DataSync D) AWS Step Functions Answer: A Explanation: Amazon Macie uses machine learning to identify and protect sensitive data stored in AWS. Question 45: What is a key benefit of using IAM groups? A) They allow sharing a single set of credentials among users B) They simplify permission management by assigning policies to a collection of users C) They automatically encrypt user data D) They enable direct access to AWS resources without policies Answer: B Explanation: IAM groups allow administrators to assign permissions to multiple users at once by attaching policies to the group. Question 46: Which AWS feature can be used to implement role-based access control (RBAC)? A) AWS Lambda B) IAM roles C) Amazon S3 lifecycle policies D) AWS CloudTrail Answer: B Explanation: IAM roles facilitate RBAC by allowing the creation of roles with specific permissions that users or services can assume as needed. Question 47: What does AWS IAM allow you to do with policies? A) Define permissions for accessing AWS resources B) Automatically back up databases C) Launch EC2 instances D) Monitor application performance Answer: A Explanation: IAM policies are used to define and control the permissions for accessing AWS resources, ensuring users have only the necessary privileges. Question 48: When integrating AWS services to enhance application security, which service is used for protecting web applications from common exploits? A) AWS Shield B) AWS WAF C) Amazon Cognito D) AWS KMS Answer: B Explanation: AWS WAF is a web application firewall that protects applications from common web exploits such as SQL injection and cross-site scripting.

Question 49: Which AWS service provides managed DDoS protection for web applications? A) AWS IAM B) AWS Shield C) Amazon RDS D) Amazon SNS Answer: B Explanation: AWS Shield offers managed protection against DDoS attacks, helping to maintain application availability. Question 50: What is the purpose of using encryption keys in AWS KMS? A) To improve database performance B) To secure data by encrypting it at rest C) To manage server configurations D) To scale compute resources automatically Answer: B Explanation: Encryption keys managed in AWS KMS are used to encrypt data at rest, ensuring that sensitive information is protected from unauthorized access. Question 51: Which AWS service is most suitable for managing API access securely in a microservices architecture? A) Amazon S B) Amazon API Gateway C) AWS CloudTrail D) AWS Step Functions Answer: B Explanation: Amazon API Gateway provides a secure and scalable platform for creating, managing, and monitoring APIs in a microservices architecture. Question 52: What does the term “federated access” refer to in AWS? A) Allowing direct access to AWS resources without credentials B) Enabling users to sign in with external identity provider credentials C) Using multiple AWS regions for deployment D) Sharing encryption keys between services Answer: B Explanation: Federated access allows users to sign in to AWS using credentials from an external identity provider, simplifying access management. Question 53: Which of the following is a best practice when creating IAM policies? A) Grant permissions beyond what is necessary B) Use wildcard characters extensively C) Follow the principle of least privilege D) Hardcode resource ARNs in all policies Answer: C Explanation: The best practice is to follow the principle of least privilege, granting only the permissions necessary for users to perform their tasks.

Explanation: A VPN connection or AWS Direct Connect provides a secure and private connection between your on-premises network and an AWS VPC. Question 59: What is the primary function of Amazon GuardDuty? A) To encrypt data in transit B) To analyze and monitor AWS account activity for potential security threats C) To manage API deployments D) To create virtual networks Answer: B Explanation: Amazon GuardDuty continuously monitors and analyzes AWS account activity to detect threats such as anomalous API calls and unauthorized behavior. Question 60: In terms of data security, what does “data encryption at rest” mean? A) Encrypting data only when it is transmitted B) Encrypting data stored on disk C) Encrypting data during processing D) Encrypting data only in backup storage Answer: B Explanation: Data encryption at rest means that stored data (on disk, in databases, etc.) is encrypted to protect it from unauthorized access when not in transit. Question 61: Which AWS service can be integrated to enhance security for user authentication in mobile applications? A) Amazon Cognito B) AWS Glue C) Amazon Redshift D) AWS Fargate Answer: A Explanation: Amazon Cognito provides user sign-up, sign-in, and access control capabilities, making it ideal for mobile and web applications. Question 62: What is a key consideration when designing secure applications in AWS? A) Allowing all inbound traffic B) Ensuring that application configuration and credentials are securely managed C) Sharing credentials across environments D) Disabling logging to protect privacy Answer: B Explanation: Secure application design requires that configurations and credentials are managed securely to prevent unauthorized access and data breaches. Question 63: Which AWS service would you use to monitor API calls and user activities across your AWS environment? A) AWS CloudTrail B) AWS CodeCommit C) Amazon EC D) AWS Batch

Answer: A Explanation: AWS CloudTrail logs all API calls and user activities, providing an audit trail for security and compliance purposes. Question 64: What is the benefit of using temporary security credentials provided by AWS STS? A) They never expire B) They reduce the risk of long-term credential exposure C) They can be shared with anyone D) They replace the need for encryption Answer: B Explanation: Temporary security credentials minimize the risk associated with long-term credentials by automatically expiring after a set period. Question 65: When securing data in transit, which protocol is commonly used with AWS Certificate Manager (ACM)? A) HTTP B) FTP C) TLS D) SMTP Answer: C Explanation: TLS (Transport Layer Security) is the protocol used to secure data in transit, and ACM helps manage the associated certificates. Question 66: Which AWS service is primarily used to store and manage backups in a secure and scalable way? A) Amazon S B) Amazon EC C) AWS Lambda D) AWS IAM Answer: A Explanation: Amazon S3 is designed for scalable, durable storage and is often used to securely store backups with additional encryption and access control features. Question 67: What is one of the advantages of using AWS Direct Connect? A) It provides an internet-based connection only B) It offers a dedicated network connection with lower latency C) It replaces the need for VPN connections D) It automates IAM role assignments Answer: B Explanation: AWS Direct Connect provides a dedicated, low-latency network connection between your on-premises data center and AWS. Question 68: Which AWS service would you use to establish a secure, scalable API for microservices? A) Amazon API Gateway

Question 73: What is a recommended approach for protecting sensitive information in application configurations? A) Hardcoding credentials in the source code B) Using AWS Secrets Manager to store configuration secrets C) Storing secrets in plain text files on EC D) Sharing credentials via email Answer: B Explanation: AWS Secrets Manager allows you to securely store, retrieve, and rotate sensitive information used in application configurations. Question 74: Which AWS service can help manage disaster recovery by replicating data across regions? A) Amazon S3 with cross-region replication B) AWS CloudFormation C) Amazon SNS D) AWS Lambda Answer: A Explanation: Amazon S3 supports cross-region replication to ensure that data is available in multiple geographic regions as part of a disaster recovery strategy. Question 75: Which AWS feature helps in monitoring and auditing changes to AWS resource configurations? A) AWS Config B) AWS CodePipeline C) Amazon Aurora D) AWS DataSync Answer: A Explanation: AWS Config continuously records and evaluates the configurations of your AWS resources to detect and respond to changes that could impact security. Question 76: Which AWS service is designed to integrate with on-premises Active Directory for authentication? A) AWS Directory Service B) AWS Lambda C) Amazon SQS D) Amazon API Gateway Answer: A Explanation: AWS Directory Service integrates with on-premises Active Directory, enabling seamless authentication and directory-aware applications in the cloud. Question 77: What is one of the main purposes of network segmentation in AWS architectures? A) To reduce the number of VPCs required B) To isolate sensitive workloads and limit lateral movement C) To eliminate the need for encryption D) To automatically configure IAM policies

Answer: B Explanation: Network segmentation isolates sensitive workloads, minimizing the risk of lateral movement in case of a security breach. Question 78: Which service is most appropriate for implementing web application firewall rules to protect against common exploits? A) AWS WAF B) AWS CloudTrail C) Amazon RDS D) AWS Batch Answer: A Explanation: AWS WAF provides the capability to set custom rules to block common web exploits, enhancing the security of web applications. Question 79: What is the main security function of multi-factor authentication (MFA) in AWS? A) It eliminates the need for passwords B) It adds an extra layer of authentication to prevent unauthorized access C) It automatically rotates encryption keys D) It provides high-availability compute resources Answer: B Explanation: MFA requires users to provide additional verification beyond a password, thereby reducing the risk of unauthorized access. Question 80: Which AWS service is used to monitor and manage network traffic flow at the subnet level? A) Network ACLs B) Amazon SNS C) AWS Lambda D) AWS CloudFormation Answer: A Explanation: Network ACLs act as stateless firewalls at the subnet level, controlling both inbound and outbound traffic. Question 81: How does AWS IAM Identity Center simplify user access management? A) By requiring separate credentials for each account B) By enabling centralized SSO across multiple AWS accounts and applications C) By encrypting user data automatically D) By replacing all IAM policies Answer: B Explanation: AWS IAM Identity Center (SSO) provides centralized access management and simplifies the process of signing into multiple AWS accounts and applications. Question 82: What is the primary benefit of implementing resource policies in AWS? A) They reduce compute costs B) They allow granular access control directly on AWS resources

B) By leaving the bucket open to the public C) By disabling logging D) By using only EC2 security groups Answer: A Explanation: A resource-based bucket policy allows you to specify who can access an Amazon S3 bucket and under what conditions, enhancing security. Question 88: Which AWS service is designed to continuously analyze data access patterns and alert you to anomalous behavior? A) AWS CloudTrail B) Amazon Macie C) AWS CodeDeploy D) AWS Step Functions Answer: B Explanation: Amazon Macie monitors data access and uses machine learning to identify unusual patterns that may indicate a security threat. Question 89: What is one of the benefits of using AWS Organizations in a multi-account environment? A) It eliminates the need for individual IAM policies B) It provides centralized management and consolidated billing C) It automatically encrypts all data D) It disables all cross-account access Answer: B Explanation: AWS Organizations centralizes management, simplifies governance, and enables consolidated billing across multiple AWS accounts. Question 90: Which AWS service provides automated backup and replication to ensure data durability? A) Amazon S3 with versioning and cross-region replication B) AWS Lambda C) AWS CodeCommit D) Amazon SNS Answer: A Explanation: Amazon S3 versioning and cross-region replication help ensure data durability and availability by keeping multiple copies of data in different locations. Question 91: Which AWS feature can automatically rotate encryption keys to maintain data security standards? A) AWS CloudTrail B) AWS KMS key rotation C) AWS Lambda D) Amazon CloudFront Answer: B Explanation: AWS KMS can be configured to automatically rotate encryption keys, thereby enhancing security and compliance.

Question 92: Which of the following is essential when designing secure application workloads on AWS? A) Storing all credentials in code repositories B) Utilizing AWS services such as AWS Shield, WAF, and Secrets Manager C) Allowing public access to databases D) Disabling encryption protocols Answer: B Explanation: Leveraging AWS security services like AWS Shield, WAF, and Secrets Manager is essential for securing application workloads. Question 93: What is the advantage of using AWS IAM roles for applications running on EC2 instances? A) They require manual credential management B) They provide temporary credentials automatically via the instance metadata C) They permanently embed credentials in the instance D) They bypass the need for encryption Answer: B Explanation: IAM roles for EC2 instances provide temporary credentials through the instance metadata service, enhancing security by avoiding static credentials. Question 94: Which AWS service is specifically designed to protect web applications from common exploits such as SQL injection? A) AWS WAF B) Amazon S C) AWS CloudTrail D) AWS Batch Answer: A Explanation: AWS WAF helps protect web applications by filtering malicious traffic and blocking common web exploits like SQL injection. Question 95: What is the purpose of AWS CloudTrail in a secure AWS environment? A) To launch EC2 instances B) To log and monitor API activity across your AWS account C) To manage database replication D) To deploy serverless applications Answer: B Explanation: AWS CloudTrail records API activity and events, providing a valuable audit trail for security and compliance purposes. Question 96: Which AWS service should be used to manage encryption certificates for securing data in transit? A) AWS Secrets Manager B) AWS Certificate Manager (ACM) C) Amazon CloudWatch D) AWS Config Answer: B