From Tests Flashcards
What networking components will allow IPv6 data to communicate between a VPC and the internet? [Select 2]
- Direct Connect
- Internet Gateway
- NAT
- Egress-Only Internet Gateway
- Internet Gateway
- Egress only
Only two components allow VPC to internet communication using IPv6 addresses and those are “Internet Gateways” and “Egress-Only Internet Gateways”. “NAT Instances” and “NAT Gateways” explicitly do not support IPv6 traffic and a “Direct Connection” carries data between a Data Centre and an AWS VPC, but does not travel over the Internet.
Which two things can you define using the Transforms section of the CloudFormation template?
- To specify the use of the Serverless Application Model for Lambda deployments
- To transform API responses to a supported format
- To re-use code located in S3
- To convert between YAML and JSON format templates
- To specify the use of the Serverless Application Model for Lambda deployments
- To re-use code located in S3
In an IAM policy, what action does IAM:PassRole relate to?
- Passing a role to an AWS service to assign temporary permissions to the service
- Passing a role to an IAM user
- Passing a role to another AWS account
- Associating a role with an EC2 instance
- Passing a role to an AWS service to assign temporary permissions to the service
- Passing a role to another AWS account
The IAM:PassRole allows any affected entity to pass roles to AWS services or Accounts, granting them permission to assume the role. The list of roles able to be passed on by an entity to other services or accounts can be restricted with the Resources element of the IAM policy statement.
AWS Systems Manager Parameter Store provides secure, hierarchical storage for configuration data and secrets management. Which of the following AWS services natively support the Parameter Store?
EC2, Lambda, CloudFormation
If you are using Memcached as your caching engine, what parameter should be adjusted if you find that the overhead pool is less than 50MB?
Memcached_Connections_Overhead
You are trying to copy a custom AMI which has been shared by another account. The AMI has been encrypted. What steps will you need to take to successfully copy the AMI?
The sharing account must share the underlying EBS snapshot as well as the original encryption key used to encrypt it. Copy the EBS snapshot and re-encrypt it using your own key, then register it as an AMI
You are trying to copy a shared AMI which has an associated billingProducts code. What are the correct steps?
Launch an EC2 instance using the shared AMI and create a new AMI from the instance
You have been asked to enable encryption at rest on your existing EFS file system. What should you do?
Explain that it is not possible to encrypt an existing EFS file system.
The security team have asked you to provide them with details of all the IAM users in your account and the status of their credentials including passwords, access keys and registered MFA devices. What is the best way to approach this?
Generate a credential report either using the AWS CLI or from the AWS console
What networking components will allow IPv6 data to communicate between a VPC and the internet?
Only two components allow VPC to internet communication using IPv6 addresses and those are “Internet Gateways” and “Egress-Only Internet Gateways”. “NAT Instances” and “NAT Gateways” explicitly do not support IPv6 traffic and a “Direct Connection” carries data between a Data Centre and an AWS VPC, but does not travel over the Internet.
Which of the following S3 operations are examples of bucket level actions?
CreateBucket,DeleteBucket,ListBucket
During a security audit your team has been asked by the auditor whether the Cloud allows for packet capture in the same way as a fiber tap can work in your old data center. What should you tell them?
Yes, VPC Traffic Mirroring supports direct access to the network packets flowing through your VPC by allowing you to mirror and forward them to another network interface in the same or another VPC in the same or another account
Amazon VPC traffic mirroring makes it easy for customers to replicate network traffic to and from an Amazon EC2 instance and forward it to out-of-band security and monitoring appliances for use-cases such as content inspection, threat monitoring, and troubleshooting
You are a security administrator for your company’s AWS account. You have enabled CloudTrail for all regions in your master account, and all API calls are centrally logged into an S3 bucket. You have downloaded those logs with the GetObject API call to perform some advanced analytics to inform a security policy. When you look at the CloudTrail activity, you notice that the API calls GetObject are not logged in CloudTrail. How would you troubleshoot this issue?
Logging data events is turned off by default. Configure S3 data events in CloudTrail trails.
An insurance company has a monolithic application hosted in an EC2 instance and a serverless application hosted in AWS Lambda. After a few months of running the application, the customers have raised multiple delays and performance issues from the applications. The Operations Engineer responsible has mentioned that the latency issues might have been caused by code-level performance issues and the Head of Operations has instructed the team to add code-level monitoring support. How can the team accomplish this?
Use AWS X-Ray for both the monolithic application code and the serverless application code.
You are a SysOps Administrator setting up a VPN connection between your on-premises data center and with AWS. You currently have an Amazon VPC setup with a Virtual Private Gateway. You have installed a customer gateway to your on-prem data center and router for your on-premises network is showing status OK. When you try to connect the EC2 instance in your Amazon VPC to a virtual machine in your data center it does not work. How should you set up the route table in the Amazon VPC?
Configure a route to the virtual private gateway.
You would like to run a Lambda function at the same time every night. Which of the following tools could you use to configure this?
Schedule an event in CloudWatch to trigger the function.
You can create rules that self-trigger on an automated schedule in CloudWatch Events using cron or rate expressions.
Which of the following is part of the failover process for a Multi-Availability Zone RDS instance
The DNS record for the RDS endpoint is changed from primary to standby.
The engineering team of a FinTech company has migrated their on-premise application to AWS and has decided to use AWS DynamoDB to store the records and a combination of EC2 instances and Lambda functions for the data processing requirements. The Chief Security Officer of the company has mandated that the DynamoDB table is accessed without the use of access keys and secrets. How can the engineering team accomplish this?
- Create and associate IAM resource policies to the EC2 Instances. Create and associate IAM roles to the Lambda functions.
- Create and associate IAM roles to the EC2 Instances. Create and associate Cognito roles to the Lambda functions.
- Create and associate IAM roles to the EC2 Instances and Lambda functions.
- Create and associate IAM roles to the EC2 Instances. Create and associate IAM resource policies to the Lambda functions.
Create and associate IAM roles to the EC2 Instances and Lambda functions.
IAM roles allow EC2 instances and similar resources such as Lambda functions to perform operations on other resources without the need for access keys and secrets.
Your Dev team in Ireland needs an AMI that was created in us-east-1. The Irish Dev team have a copy of the AMI and are attempting to use it to launch instances in eu-west-1, however they are unable to make it work. Which of the following is the most likely cause of the problem?
- The Dev team does not have launch permissions to use the AMI to launch instances.
- You cannot use AMIs created by a different account
- The Dev team has failed to manually re-create the launch permissions.
- The US based account which created the AMI has not shared it with the Ireland based account.
The Dev team has failed to manually re-create the launch permissions.
Copying a source AMI results in an identical but distinct target AMI with its own unique identifier. AWS does not copy launch permissions, user-defined tags, or Amazon S3 bucket permissions from the source AMI to the new AMI. After the copy operation is complete, you must apply launch permissions manually.
You need to create a new trail in AWS CloudTrail service. You want the new trail to capture all management events through AWS API or console. The trail should also capture the data events that are performed within the resources. Which types of resources can be configured in the trail for the data events? (Select TWO.)
- S3 buckets.
- EC2 EBS volumes.
- Lambda Functions.
- RDS instances
- DynamoDB tables.
S3 buckets.
Lambda Functions
With CloudTrail, you can collect data events that happen within the resources of S3 or Lambda Function. Data events are disabled by default. You can explicitly add the supported resource types when configuring a trail.
You need to update the AMI in your EC2 Auto Scaling launch configuration. Which of the following statements are true? Select three.
- Changing the launch configuration of an Auto Scaling group doesn’t affect existing instances.
- Changing the launch configuration of an Auto Scaling group triggers existing instances to be relaunched using the new configuration.
- The existing launch configuration cannot be modified so a new one must be created.
- You can specify multiple launch configurations for an EC2 Auto Scaling group at a time.
- The launch configuration can be modified freely so there is no need to create a new one.
- You can only specify one launch configuration for an EC2 Auto Scaling group at a time.
Changing the launch configuration of an Auto Scaling group doesn’t affect existing instances.
The existing launch configuration cannot be modified so a new one must be created.
You can only specify one launch configuration for an EC2 Auto Scaling group at a time.
You are providing a storage solution for a customer. The customer requires a scalable, secure, and highly available network file system accessed by EC2 instances to support highly parallelized workloads and performance needs of big data and analytics. What AWS storage solution would you build for your customer?
- Create an EFS file accessible by EC2 via mount targets in each Region. Control traffic flow between Amazon EFS and EC2 instances using NACLs.
- Create an EFS file accessible by EC2 via mount targets in each Availability Zone. Control traffic flow between Amazon EFS and EC2 instances using NACLs.
- Create an EFS file accessible by EC2 via mount targets in each Region. Control traffic flow between Amazon EFS and EC2 instances using security groups.
- Create an EFS file accessible by EC2 via mount targets in each Availability Zone. Control traffic flow between Amazon EFS and EC2 instances using security groups.
Create an EFS file accessible by EC2 via mount targets in each Availability Zone. Control traffic flow between Amazon EFS and EC2 instances using security groups.
Which of the following distinguishes two CloudWatch metrics that are in the same namespace and have the same name? A. Timestamp B. Data point C. Dimension D. Region
CloudWatch uses dimensions to identify metrics that have the same name and are
within the same namespace. Me
You update a CloudWatch metric with a timestamp of 10:00:30 and a value of 98.
You then update the same metric with a timestamp of 10:00:59 and a timestamp of 97.
Assuming the metric is a regular-resolution metric, what will CloudWatch do?
A. Record the first value and ignore the second value.
B. Record the second value and overwrite the first value.
C. Record both values.
D. Store the average of the two values.
B. CloudWatch can store regular-resolution metrics at no less than 1-minute resolution.
Therefore, updating a metric at 10:00:30 and then again at 10:00:59 will result in
CloudWatch storing only the second value.