You are using the Oracle Cloud Infrastructure Command Line Interface to launch a Linux virtual machine. You enter the following command (with correct values for all parameters): The command fails.
Which is NOT a valid parameter in this command? (Choose the best answer.)
A. –t
B. – –image-id
C. – –shape “andlt;shape_name>”
D. –c
E. – –subnet-id
You are asked to deploy a new application that has been designed to scale horizontally. The business stakeholders have asked that the application be deployed in us-phoenix-1.
Normal usage requires 2 OCPUs. You expect to have few spikes during the week, that will require up to 4 OCPUs, and a major usage uptick at the end of each month that will require 8 OCPUs.
What is the most cost-effective approach to implement a highly available and scalable solution? (Choose the best answer.)
A. Create an instance pool with a VM.Standard2.2 shape instance configuration. Setup the autoscaling configuration to use 2 availability domains and have a minimum of 2 instances, to handle the weekly spikes, and a maximum of 4 instances.
B. Create an instance with 1 OCPU shape. Use the Resize Instance action to scale up to a larger shape when more resources are needed.
C. Create an instance with 1 OCPU shape. Use a CLI script to clone it when more resources are needed.
D. Create an instance pool with a VM.Standard2.1 shape instance configuration. Setup the autoscaling configuration to use 2 availability domains and have a minimum of 2 instances and a maximum of 8 instances.
Your company recently adopted a hybrid cloud architecture which requires them to migrate some of their on-premises web applications to Oracle Cloud Infrastructure (OCI). You created a Terraform template which automatically provisions OCI resources such as compute instances, load balancer, and a database instance. After running the stack using the terraform apply command, it successfully launched the compute instances and the load balancer, but it failed to create a new database instance with the following error:
Service error: NotAuthorizedOrNotFound. shape VM.Standard2.4 not found. http status code: 404
You discovered that the resource quotas assigned to your compartment prevent you from using VM.Standard2.4 instance shapes available in your tenancy. You edit the Terraform script and replace the shape with VM.Standard2.2
Which option would you recommend to re-run the terraform command to have required OCI resources provisioned with the least effort? (Choose the best answer.)
A. terraform plan –target=oci_database_db_system.db_system
B. terraform apply –auto-approve
C. terraform refresh –target=oci_database_db_system.db_system
D. terraform apply –target=oci_database_db_system.db_system
You are using Oracle Cloud Infrastructure (OCI) console to set up an alarm on a budget to track your OCI spending.
Which two are valid targets for creating a budget in OCI? (Choose two.)
A. Select group as the type of target for your budget.
B. Select Tenancy as the type of target for your budget.
C. Select user as the type of target for your budget.
D. Select Cost-Tracking Tags as the type of target for your budget.
E. Select Compartment as the type of target for your budget.
Your application is using an Object Storage bucket named app-data in the namespace vision, to store both persistent and temporary data. Every week all the temporary data should be deleted to limit the storage consumption.
Currently you need to navigate to the Object Storage page using the web console, select the appropriate bucket to view all the objects and delete the temporary ones.
To simplify the task you have configured the application to save all the temporary data with /temp prefix. You have also decided to use the Command Line Interface (CLI) to perform this operation.
What is the command you should use to speed up the data cleanup? (Choose the best answer.)
A. oci os object delete –ns vision –bn app–data ––prefix /temp
B. oci os object bulk-delete –ns vision –bn app–data ––prefix /temp ––force
C. oci objectstorage bulk–delete –ns vision –bn app–data ––prefix /temp ––force
D. oci os object delete app-data in vision where prefix = /temp
You have recently been asked to take over management of your company's infrastructure provisioning efforts, utilizing Terraform v0.12 to provision and manage infrastructure resources in Oracle Cloud Infrastructure (OCI). For the past few days the development environments have been failing to provision. Terraform returns the following error: You locate the related code block in the Terraform config and find the following:
Which correction should you make to solve this issue? (Choose the best answer.)
A. Place a command at the end of line 16
B. Modify line 15 to be the following: tcp_options = {min = “22”, max = “22”)
C. Modify line 15 to be the following: tcp_options { min = “22” max = “22” }
D. Replace the curly braces ‘{ }’ in lines 11 and 16 with square braces ‘[ ]’
Your customer is running a set of compute instances inside a private subnet to manage their workloads on Oracle Cloud Infrastructure (OCI) tenancy. You have set up auto scaling feature to provide consistent performance to their end users during period of high demand.
Which step should be met for auto scaling to work? (Choose the best answer.)
A. OS Management Service agent (osms) must be installed on the instances.
B. Audit logs for the instances should be enabled.
C. Service gateway should be setup to allow instances to send metrics to monitoring service.
D. Monitoring for the instances should not be enabled.
The boot volume on your Oracle Linux instance has run out of space. Your application has crashed due to a lack of swap space, forcing you to increase the size of the boot volume.
Which step should NOT be included in the process used to solve the issue? (Choose the best answer.)
A. Reattach the boot volume and restart the instance.
B. Attach the resized boot volume to a second instance as a data volume; extend the partition and grow the file system in the resized boot volume.
C. Stop the instance and detach the boot volume.
D. Resize the boot volume by specifying a larger value than the boot volume's current size.
E. Create a RAID 0 configuration to extend the boot volume file system onto another block volume.
Recently, your e-commerce web application has been receiving significantly more traffic than usual. Users are reporting they often encounter a 503 Service Error when trying to access your site. Sometimes the site is very slow.
You check your instance pool configuration to confirm that the maximum number of instances is configured to allow 20 compute instances. Currently, 14 compute instances have been provisioned by the instance pool. You also confirm that current CPU utilization across all hosts exceeds the scale-out threshold you set in your auto-scaling policy. However, the instance pool is not provisioning any new instances.
What can you check to determine why the application is NOT functioning properly? (Choose the best answer.)
A. Verify that the new offer feature code did not introduce any performance bugs.
B. Verify that the database is accessible.
C. Verify that the compute resource quota has not been exceeded.
D. Verify that the Quality Assurance team is not currently performing load-testing against production.
Your team implemented a SaaS application that requires a whole system deployment for each new customer. The infrastructure provisioning is already automated via Terraform, and now you have been asked to develop an Ansible playbook to centralize configuration file management and deployment.
What is the most effective way to ensure your playbooks are utilizing up-to-date and accurate inventory? (Choose the best answer.)
A. Export an inventory list from the Oracle Cloud Infrastructure Web console.
B. Export an inventory list using Terraform apply command.
C. Implement a Command Line Interface script to list all the resources and run it within Ansible to generate a dynamic inventory list.
D. Download the dynamic inventory script provided by Oracle Cloud Infrastructure and include it in the playbook invocation command.