Free NSE7_PBC-7.2 Exam Braindumps
Fortinet NSE 7 - Public Cloud Security 7.2 Questions 16–20 (page: 5)

Updated On: 10-Feb-2026

Refer to the exhibit



You are deploying two FortiGate VMS in HA active-passive mode with load balancers in Microsoft Azure

Which two statements are true in this load balancing scenario? (Choose two.)

  1. The FortiGate public IP is the next-hop for all the traffic.
  2. An internal load balancer listener is the next-hop for outgoing traffic.
  3. You must add a route to the Microsoft VIP used for the health check.
  4. A dedicated management interface can be used for load balancing.

Answer(s): B,C

Explanation:

A is incorrect because the FortiGate public IP is not the next-hop for all the traffic. The FortiGate public IP is only used for incoming traffic from the internet. The Azure load balancer distributes the incoming traffic to the active FortiGate VM based on a health probe123. The FortiGate public IP is not used for outgoing traffic or internal traffic.

B is correct because an internal load balancer listener is the next-hop for outgoing traffic. The internal load balancer listener is configured with a floating IP address that is assigned to the active FortiGate VM. The internal load balancer listener also has a health probe to monitor the status of the FortiGate VMs123. The internal load balancer listener forwards the outgoing traffic to the internet through the public load balancer.

C is incorrect because you do not need to add a route to the Microsoft VIP used for the health check. The Microsoft VIP is an internal IP address that is used by the Azure load balancer to send health probes to the FortiGate VMs123. The Microsoft VIP is not reachable from outside the Azure network and does not require any routing configuration on the FortiGate VMs.

D is correct because a dedicated management interface can be used for load balancing. In this deployment, port4 is used as a dedicated management interface that connects to the management network3. The dedicated management interface can be used to access the FortiGate VMs for configuration and monitoring purposes. The dedicated management interface can also be used to synchronize the configuration and session information between the primary and secondary devices in an HA cluster2.



Refer to Exhibit:



After the initial Terraform configuration in Microsoft Azure, the terraform plan command is run Which two statements about running the plan command are true? (Choose two.)

  1. The terraform plan command will deploy the rest of the resources except the service principle details.
  2. You cannot run the terraform apply command before the terraform plan command.
  3. You must run the terraform init command once, before the terraform plan command
  4. The terraform plan command makes terraform do a dry run.

Answer(s): C,D

Explanation:

A is incorrect because the terraform plan command will not deploy any resources at all. It will only show the changes that would be made if the terraform apply command was run. The error message in the exhibit indicates that the service principal details are invalid, which means that Terraform cannot authenticate to Azure and cannot create any resources1.

B is incorrect because you can run the terraform apply command without running the terraform plan command first. The terraform apply command will automatically generate a new plan and prompt you to approve it before applying it2. However, running the terraform plan command first can help you preview the changes and avoid any unwanted or unexpected actions.

C is correct because you must run the terraform init command once before the terraform plan command. The terraform init command initializes a working directory containing Terraform configuration files. It downloads and installs the provider plugins required for your configuration, such as the Azure provider2. It also creates a hidden directory called .terraform to store the plugin binaries and other metadata1. Without running the terraform init command, the terraform plan command will fail because it cannot find the required plugins or modules.

D is correct because the terraform plan command makes Terraform do a dry run. A dry run is a simulation of what would happen if you executed a certain action, without actually performing it. The terraform plan command creates an execution plan, which is a description of the actions that Terraform would take to make your infrastructure match your configuration2. The execution plan shows you what resources will be created, modified, or destroyed, and what attributes will be changed. The execution plan does not affect your infrastructure or state file until you apply it with the terraform apply command1.



What are three important steps required to get Terraform ready using Microsoft Azure Cloud Shell? (Choose three.)

  1. Set up a storage account in Azure.
  2. use the -O command to download Terraform.
  3. Subscribe to Terraform in Azure.
  4. Move the Terraform file to the bin directory.
  5. Use the wget (te=aform vession) command to upload Terraform.

Answer(s): A,D,E

Explanation:

To get Terraform ready using Microsoft Azure Cloud Shell, you need to perform the following steps:

Set up a storage account in Azure. This is required to store the Terraform state file in a blob container, which enables collaboration and persistence of the infrastructure configuration1.

Use the wget (terraform_version) command to upload Terraform. This command downloads the latest version of Terraform from the official website and saves it as a zip file in the current directory2.

Move the Terraform file to the bin directory. This step extracts the Terraform executable from the zip file and moves it to the bin directory, which is part of the PATH environment variable. This allows you to run Terraform commands from any directory in Cloud Shell2.

The other options are incorrect because:

You do not need to use the -O command to download Terraform. This command is used to specify a different output file name for the downloaded file, but it is not necessary for this task3.

You do not need to subscribe to Terraform in Azure. Terraform is an open-source tool that can be used with any cloud provider, and there is no subscription or registration required to use it with Azure4.


Reference:

Updating the route table and adding an IAM policy

Configure Terraform in Azure Cloud Shell with Bash wget(1) - Linux man page

Terraform by HashiCorp



Refer to the exhibit



You are tasked with deploying a webserver and FortiGate VMS in AWS_ You are using Terraform to automate the process

Which two important details should you know about the Terraform files? (Choose two.)

  1. All the output values are available after a successful terraform apply command
  2. The subnet_private 1 value is defined in the variables . tf file
  3. After the deployment, Terraform output values are visible only through AWS CloudShell.
  4. You must specify all the AWS credentials in the output. of file.

Answer(s): A,B

Explanation:

A . All the output values are available after a successful terraform apply command. This means that after the deployment, you can view the output values by running terraform output or terraform show in the same directory where you ran terraform apply1. You can also use the output values in other Terraform configurations or external systems by using the terraform output command with various options2. B. The subnet_private_1 value is defined in the variables.tf file. This means that the subnet_private_1 value is an input variable that can be customized by passing a different value when running terraform apply or by setting an environment variable3. The variables.tf file is where you declare all the input variables for your Terraform configuration4.

The other options are incorrect because:

After the deployment, Terraform output values are not visible only through AWS CloudShell. You can access them from any shell or terminal where you have Terraform installed and configured with your AWS credentials.

You do not need to specify all the AWS credentials in the output.tf file. The output.tf file is where you declare all the output values for your Terraform configuration4. You can specify your AWS credentials in a separate file, such as provider.tf, or use environment variables or shared credentials files.


Reference:

Output Values - Configuration Language | Terraform - HashiCorp Developer

Command: output - Terraform by HashiCorp

Input Variables - Configuration Language | Terraform - HashiCorp Developer

Configuration Language | Terraform - HashiCorp Developer



Refer to the exhibit

You are tasked to deploy a FortiGate VM with private and public subnets in Amazon Web Services (AWS).

You examined the variables.tf file.

What will be the final result after running the terraform init and terraform apply commands?

  1. Terraform will not deploy a FortiGate VM
  2. Terraform will deploy a FortiGate VM in the eu-West-Ia region with private and public subnets.
  3. Terraform will deploy a FortiGate VM in the eu-West-1a region with two subnets and byol license.
  4. Terraform will deploy a FortiGate VM in the eu-West-Ia region without any subnets.

Answer(s): C

Explanation:

The variables.tf file shows that the FortiGate VM will be deployed in the eu-West-Ia region with private and public subnets. The region variable is set to "eu-west-1" and the availability_zone variable is set to "eu-west-1a". The vpc_id variable is set to "vpc-0e9d6a6f" and the subnets variable is set to a list of two subnet IDs: "subnet-0f9d6a6f" and "subnet-1f9d6a6f". The license_type variable is set to "on-demand" and the ami_id variable is set to "ami-0e9d6a6f".


Reference:

https://docs.fortinet.com/document/fortigate/6.4.0/aws-cookbook/236478/deploying- fortigate-vm-on-aws-using-terraform



Viewing page 5 of 13
Viewing questions 21 - 25 out of 59 questions


Post your Comments and Discuss Fortinet NSE7_PBC-7.2 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!